﻿@model TeamOPSchoolCup.Domain.POCO.Sport

@{
    ViewBag.Title = "Edit";
}

@section sport{
    <link rel="Stylesheet" href="@Url.Content("~/Content/css/Sport.css")" type="text/css" />
}

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)
    <fieldset id="addSport">
        <legend>Edit Sport</legend>
        @Html.HiddenFor(model => model.SportId)
        <div class="editor-label">
            @Html.LabelFor(model => model.Name)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Name)
            @Html.ValidationMessageFor(model => model.Name)
        </div>
        @Html.HiddenFor(model => model.SportId)
        <div class="editor-label">
            @Html.LabelFor(model => model.Abbreviation)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Abbreviation)
            @Html.ValidationMessageFor(model => model.Abbreviation)
        </div>

        <p>
            <input type="submit" value="Save" />
        </p>
    </fieldset>
}

<div id="btl">
    @Html.ActionLink("Back to Sports", "Index")
</div>
